home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / desktop-base.postinst < prev    next >
Encoding:
Text File  |  2011-02-26  |  3.3 KB  |  103 lines

  1. #!/bin/bash -e
  2.  
  3.  
  4.  
  5. if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
  6.   dpkg-maintscript-helper rm_conffile /etc/kde3/kdeglobals 6.0.1 -- "$@"
  7. fi
  8.  
  9. if [ "${1}" = "configure" ] && [ "$2" != "" ] ; then
  10.  
  11.     if dpkg --compare-versions ${2} lt 0.3.11 && dpkg --compare-versions ${2} gt 0.3.5; then
  12.         if test -x /var/lib/dpkg/info/libgnome2-common.postinst; then
  13.             /var/lib/dpkg/info/libgnome2-common.postinst configure
  14.         fi
  15.     fi
  16. fi
  17.  
  18. if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
  19.     # Alternatives for the background
  20.     update-alternatives --install \
  21.         /usr/share/images/desktop-base/desktop-background \
  22.         desktop-background \
  23.         /usr/share/images/desktop-base/spacefun-wallpaper.svg 60
  24.  
  25.     update-alternatives --install \
  26.         /usr/share/images/desktop-base/desktop-background \
  27.         desktop-background \
  28.         /usr/share/images/desktop-base/spacefun-wallpaper-widescreen.svg  55
  29.  
  30.     update-alternatives --install \
  31.         /usr/share/images/desktop-base/desktop-background \
  32.         desktop-background \
  33.         /usr/share/images/desktop-base/moreblue-orbit-wallpaper.svg 50
  34.  
  35.     update-alternatives --install \
  36.         /usr/share/images/desktop-base/desktop-background \
  37.         desktop-background \
  38.         /usr/share/images/desktop-base/moreblue-orbit-wallpaper-widescreen.svg  50
  39.  
  40.     update-alternatives --install \
  41.         /usr/share/images/desktop-base/desktop-background \
  42.         desktop-background \
  43.         /usr/share/images/desktop-base/nightly-wallpaper.png 40
  44.  
  45.     update-alternatives --install \
  46.         /usr/share/images/desktop-base/desktop-background \
  47.         desktop-background \
  48.         /usr/share/images/desktop-base/debian-blueish-wallpaper.svg 30
  49.  
  50.     # Alternatives for the splash
  51.     update-alternatives --install \
  52.         /usr/share/images/desktop-base/desktop-splash \
  53.         desktop-splash \
  54.         /usr/share/images/desktop-base/spacefun-splash.svg 50
  55.  
  56.     update-alternatives --install \
  57.         /usr/share/images/desktop-base/desktop-splash \
  58.         desktop-splash \
  59.         /usr/share/images/desktop-base/moreblue-orbit-splash.png 40
  60.  
  61.     update-alternatives --install \
  62.         /usr/share/images/desktop-base/desktop-splash \
  63.         desktop-splash \
  64.         /usr/share/images/desktop-base/gnome-splash-curves.png 30
  65.  
  66.     # Alternatives for grub
  67.     update-alternatives --install \
  68.         /usr/share/images/desktop-base/desktop-grub.png \
  69.         desktop-grub \
  70.         /usr/share/images/desktop-base/spacefun-grub.png 15
  71.  
  72.     update-alternatives --install \
  73.         /usr/share/images/desktop-base/desktop-grub.png \
  74.         desktop-grub \
  75.         /usr/share/images/desktop-base/spacefun-grub-widescreen.png 14
  76.  
  77.     update-alternatives --install \
  78.         /usr/share/images/desktop-base/desktop-grub.png \
  79.         desktop-grub \
  80.         /usr/share/images/desktop-base/moreblue-orbit-grub.png 10
  81.  
  82.     # GRUB background
  83.     if which update-grub2 > /dev/null ; then
  84.         sync
  85.         update-grub2 || true
  86.     fi
  87.  
  88.     # Splashy
  89.     if [ -x /sbin/splashy_config ] && [ -w /etc/splashy/config.xml ]; then
  90.         splashy_config --set-theme spacefun
  91.     fi
  92.  
  93.     # Plymouth
  94.     #if [ -x /usr/sbin/plymouth-set-default-theme ];
  95.     #then
  96.     #  plymouth-set-default-theme spacefun ||true
  97.     #fi
  98.  
  99.     if [ -x /usr/sbin/update-initramfs ]; then
  100.         update-initramfs -u
  101.     fi
  102. fi
  103.